import com.example.demo.chap2.MainConfig3;
import org.junit.jupiter.api.Test;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class test {
    /**
     * 测试 使用构造函数注入简单值
     */
    @Test
    void testConstructor01() {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext-chapter02.xml");
        Employee emp01 = applicationContext.getBean("emp01", Employee.class);
        emp01.show();
    }
}

